﻿using System.Web.Mvc;

namespace Smarly.Web.Areas.Admin
{
	public class AdminAreaRegistration : AreaRegistration
	{
		public override string AreaName
		{
			get
			{
				return "Admin";
			}
		}

		public override void RegisterArea(AreaRegistrationContext context)
		{
			context.MapRoute(
					"Admin_Ebook",
					"admin/ebook/{*url}",
					new { action = "Index", controller = "EBook" }
			);
			context.MapRoute(
					"Admin_EditContext",
					"admin/edit-context/{hashTag}",
					new { action = "Index", controller = "EditContext" }
			);
			context.MapRoute(
					"Admin_default",
					"admin/{controller}/{action}",
					new { action = "Index"}
			);
		}
	}
}
